import request from '@/utils/request';
// 查询企业异常详情
export function qryInfoDetail(query) {
  return request({
    url: `/api/back/qryInfo`,
    method: 'get',
    requestBase: 'VUE_APP_BASE_YB_API',
    params: query
  });
}

// 月计划调整审批
export function getPlanAdjustByActRecord(query) {
  return request({
    url: '/transalePlan/transalePlan/getPlanAdjustByActRecord',
    method: 'get',
    params: query
  });
}
// 查询企业运销申请补录详细
export function getApply(id) {
  return request({
    url: '/transale/apply/' + id,
    method: 'get'
  });
}
//审批
export function corpSubmit(data) {
  return request({
    url: '/system/process/submit',
    method: 'post',
    data: data
  });
}

// 获取企业基本信息
export function queryFirmInfo(query) {
  return request({
    url: '/api/corp/details',
    requestBase: 'VUE_APP_BASE_YB_API',
    method: 'get',
    params: query
  });
}

// 月运销计划审批
export function getPlanByActRecord(query) {
  return request({
    url: '/transalePlan/transalePlan/getPlanByActRecord',
    method: 'get',
    params: query
  });
}

// 煤种数据
export function queryCoalData() {
  return request({
    url: '/business/coalinfo/enableCoalList',
    method: 'get'
  });
}

// 废煤企业详情
export function getFmCustomer(id) {
  return request({
    // url: '/system/customer/detail/' + id,
    url: `/system/customer/company/detail/${id}`,
    method: 'get'
  });
}

/**
 * 获取黑白名单详情
 * @param id id
 * @returns {*}
 */
export function getTruckCarDetail(id) {
  return request({
    url: '/API/truckcarblack/getTruckCarBlackAuditById',
    method: 'get',
    requestBase: 'VUE_TRUCK_API',
    params: { id }
  });
}
